export function openLiveWindow() {
    if (window.Brower)
        window.Brower.OpenLiveWindow()
}

export function closeWindow() {
    if (window.Brower)
        window.Brower.CloseWindow();//关闭
}

export function minWindow() {
    if (window.Brower)
        window.Brower.MinWindow();// 最小化画面
}

export function loginInfo(userName, pwd) {
    if (window.Brower)
        window.Brower.LoginInfo(userName, pwd); // 获取账号密码
}

export function autoLogin(callback) {
    if (window.Brower) {
        window.Brower.AutoLogin(callback)
    } else {
        callback(false)
    }
}

export function initLogin(callback) {
    if (window.Brower) {
        window.Brower.InitLogin(callback)
    } else {
        callback(null)
    }
}

export function setDefaultScreen(flag) {
    if (window.Brower) {
        window.Brower.SetDefaultScreen(flag)
    }
}




